package com.zdb.demo.hadoop.hdfs;

import org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer;
import org.junit.Test;

public class FSImageTest {

    @Test
    public void testOfflineImageReconstrutor() throws Exception {
        OfflineImageReconstructor.run("/Users/zhudebin/Documents/iworkspace/java-demo/hadoop/files/fsimageSample.xml", "/Users/zhudebin/Documents/iworkspace/java-demo/hadoop/files/fsimageSample");

    }

    @Test
    public void testOfflineImageViewer() throws Exception {
        OfflineImageViewer.main(new String[]{"-i", "/Users/zhudebin/Documents/iworkspace/java-demo/hadoop/files/fsimageSample",
                "-o", "/Users/zhudebin/Documents/iworkspace/java-demo/hadoop/files/fsimageSample2.xml", "-p", "XML"});
    }
}
